package top.zxybird.yun.serialization.thrift;

import com.google.common.collect.Lists;
import top.zxybird.yun.common.util.Tuple;
import top.zxybird.yun.serialization.thrift.model.*;

import java.util.List;

/**
 * public static final byte STOP = 0;<br>
 * public static final byte VOID = 1;<br>
 * public static final byte BOOL = 2;<br>
 * public static final byte BYTE = 3;<br>
 * public static final byte DOUBLE = 4;<br>
 * public static final byte I16 = 6;<br>
 * public static final byte I32 = 8;<br>
 * public static final byte I64 = 10;<br>
 * public static final byte STRING = 11;<br>
 * public static final byte STRUCT = 12;<br>
 * public static final byte MAP = 13;<br>
 * public static final byte SET = 14;<br>
 * public static final byte LIST = 15;<br>
 * public static final byte ENUM = 16;<br>
 */
public class TypeMapper {

  private static final List<Tuple.Tuple3<Byte, Class<? extends TType>, Class>> list = Lists.newArrayList();

  static {
    list.add(Tuple.tuple(TTypeConstant.STOP, TStop.class, null));
    list.add(Tuple.tuple(TTypeConstant.VOID, TVoid.class, void.class));
    list.add(Tuple.tuple(TTypeConstant.BOOL, TBoolean.class, boolean.class));
  }

}
